using Microsoft.AspNetCore.Mvc;
using Project_Schedule.Domain.BackGround.com.core.dto;
using Project_Schedule.Domain.BackGround.com.core.Interface;
using Project_Schedule.Domain.Request;

namespace Project_Schedule.Domain.BackGround.com.core.Controller;
[ApiController]
[Route("api/[Controller]/[action]")]
public class BackgroundRefuseMessageController:ControllerBase
{
    private readonly IBackgroundRefuseUserSendMessage _backgroundRefuseUserSendMessage;

    public BackgroundRefuseMessageController(IBackgroundRefuseUserSendMessage backgroundRefuseUserSendMessage)
    {
        _backgroundRefuseUserSendMessage = backgroundRefuseUserSendMessage;
    }

    [HttpPost]
    public async Task<JRequest> SendMessage(BackgroundRefuseUserErrorString dto) =>
        await _backgroundRefuseUserSendMessage.SendErrorMessage(dto);


}